<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>后台登录</title>
    <link rel="stylesheet" type="text/css" href="__ROOT__/admin/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="__ROOT__/admin/css/admin.css"/>
</head>
<body>
<div style="margin: 0 auto; max-width: 1140px;">
    <form class="layui-form column-content-detail" method="post" action="{:url('developer/edit')}">
        <div class="layui-tab">
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <input value="{$list.id}" name="id" style="display: none">
                    <div class="layui-form-item">
                        <label class="layui-form-label">手机号：</label>
                        <div class="layui-input-block">
                            <input type="text" name="phone" required  value="{$list.phone}" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">姓名：</label>
                        <div class="layui-input-block">
                            <input type="text" name="name" required value="{$list.name}" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">QQ：</label>
                        <div class="layui-input-block">
                            <input type="text" name="qq" required value="{$list.qq}" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付宝</label>
                        <div class="layui-input-block">
                            <input type="text" name="pay" required value="{$list.pay}" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">案例一</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" name="al1" class="layui-textarea">{$list.al1}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">案例二</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" name="al2" class="layui-textarea">{$list.al2}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">案例三</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" name="al3" class="layui-textarea">{$list.al3}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">案例四</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" name="al4" class="layui-textarea">{$list.al4}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">案例五</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" name="al5" class="layui-textarea">{$list.al5}</textarea>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">技术标签：</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" name="tags" id="tags" class="layui-textarea">{$list.tags}</textarea>
                            <input type="text" class="form-control" name="tagsid" value="{$list.tagsid}" id="tagid"  style="display: none"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"></label>
                        <a class="layui-btn layui-btn-danger "  id="edit">编辑标签</a>
                        <!--                        <a class="layui-btn layui-btn-danger "  id="tag">编辑标签</a>-->
                        <!--                        <a class="layui-btn layui-btn-warm "  id="tag1">减少标签</a>-->
                    </div>

                </div>
            </div>
        </div>

<div class="layui-form-item" style="padding-left: 10px;">
    <div class="layui-input-block">
        <button class="layui-btn layui-btn-normal">立即提交</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
</div>
</form>
</div>
<script type="text/javascript" src="__ROOT__/static/assets/js/jquery-2.1.4.min.js"></script>
<script src="__ROOT__/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script src="__ROOT__/admin/js/common.js" type="text/javascript" charset="utf-8"></script>
<script src="__ROOT__/admin/lib/echarts/echarts.js"></script>
<script>
    layui.use(['form', 'jquery', 'layer', 'dialog'], function() {
        var $ = layui.jquery;
        // $("#tag").on("click", function(){
        //     //iframe层
        //     layer.open({
        //         type: 2,
        //         title: '增加标签',
        //         shadeClose: true,
        //         shade: 0,
        //         maxmin: true, //开启最大化最小化按钮
        //         area: ['800px', '700px'],
        //         content:[ '{:url(\'Developer/tagadd\')}']
        //     });
        // });
        // $("#tag1").on("click", function(){
        //     //iframe层
        //     layer.open({
        //         type: 2,
        //         title: '增加标签',
        //         shadeClose: true,
        //         shade: 0,
        //         maxmin: true, //开启最大化最小化按钮
        //         area: ['800px', '700px'],
        //         content:[ '{:url(\'Developer/tagdel\')}']
        //     });
        // });
        $("#edit").on("click", function(){
            //iframe层
            layer.open({
                type: 2,
                title: '编辑标签',
                shadeClose: true,
                shade: 0,
                maxmin: true, //开启最大化最小化按钮
                area: ['800px', '700px'],
                content:[ '{:url(\'Developer/tagedit\')}']
            });
        });
    })
</script>

</body>
</html>